﻿$(document).ready(
    function () {
        if (window.year == undefined) {
            $('#archiveTree').simpletree({
                expandAll: false,
                expandFirstItem: true,
                expandItem: ''
            });
        }
        else {
            $('#archiveTree').simpletree({
                expandAll: false,
                expandFirstItem: false,
                expandItem: year
            });
        }
    });